#ifndef _NAME_PAIRS_H_
#define _NAME_PAIRS_H_

#include<iostream>
#include<vector>
#include<math.h>
#include<stdlib.h>
#include<string.h>
#include<stdio.h>

using namespace std;

class Name_pairs
{
 public:
  void sort();
  //void print();
  void read_name();
  void read_age();
  bool operator==(const Name_pairs& temp);
  bool operator!=(const Name_pairs& temp);
  friend ostream& operator<<(ostream& os,const Name_pairs& temp);
  
 private:
  vector<string> name;
  vector<double> age;
};

#endif
